﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MaintainScrollPositionOnPostback="true" MasterPageFile="~/Site.Master" CodeBehind="transfer.aspx.vb" Inherits="WebApplication3.transfer" ValidateRequest="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        #TextArea1
        {
            height: 164px;
            width: 340px;
        }
    </style>
    <script language="javascript" type="text/javascript">
// <![CDATA[


// ]]>
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <script type="text/javascript" language="javascript">
    function InsertText(con) {
        var txt = document.getElementById('<%= Textbox2.ClientID %>');
        var mosPos = 0;

        if (document.selection) {
            txt.focus();
            var ran = document.selection.createRange();
            ran.text = con.value;
        }
        else if (txt.selectionStart != null) {
            mosPos = txt.selectionStart;
            var strFirst = txt.value.substring(0, mosPos);
            var strLast = txt.value.substring(mosPos);
            if (txt.value == "") {
                txt.value = con.value;
            }
            else {
                txt.value = strFirst + con.value + strLast;
            }
        }
    }
    function addsnippet() {
        var opt = document.createElement("option");

        document.getElementById("DropDownList1").options.add(opt);
        opt.text = document.getSelection();
        opt.value = document.getSelection();
    }
    </script>
            <asp:ValidationSummary ID="LoginUserValidationSummary" runat="server" CssClass="failureNotification" 
                 ValidationGroup="LoginUserValidationGroup" ClientIDMode="AutoID"/>
            <asp:ValidationSummary ID="fileUserValidationSummary0" runat="server" CssClass="failureNotification" 
                 ValidationGroup="fileUserValidationGroup" ClientIDMode="AutoID"/>
            <asp:ValidationSummary ID="file2UserValidationSummary1" runat="server" CssClass="failureNotification" 
                 ValidationGroup="file2ValidationGroup" ClientIDMode="AutoID"/>
            <br />
    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>&nbsp;<asp:RequiredFieldValidator 
        ID="fileuploadRequired1" runat="server" ControlToValidate="TextBox1" 
                             CssClass="failureNotification" 
        ErrorMessage="file is required." ToolTip="file is required." 
                             ValidationGroup="file2ValidationGroup">*</asp:RequiredFieldValidator>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:Button ID="Button1" runat="server" Text="get file" 
        ValidationGroup="file2ValidationGroup" />
    <br />
    <br />
    <asp:DropDownList ID="DropDownList1" runat="server" onchange="InsertText(this);">
            <asp:ListItem>&lt;B&gt;&lt;/B&gt;</asp:ListItem>
            <asp:ListItem>&lt;BODY&gt;&lt;/BODY&gt;</asp:ListItem>
            <asp:ListItem>&lt;CENTER&gt;&lt;/CENTER&gt;</asp:ListItem>
            <asp:ListItem>&lt;HEAD&gt;&lt;/HEAD&gt;</asp:ListItem>
            <asp:ListItem>&lt;/P&gt;</asp:ListItem>
            <asp:ListItem>&lt;TABLE&gt;&lt;/TABLE&gt;</asp:ListItem>
            <asp:ListItem>&lt;TD&gt;&lt;/TD&gt;</asp:ListItem>
            <asp:ListItem>&lt;TH&gt;&lt;/TH&gt;</asp:ListItem>
            <asp:ListItem>&amp;COPY</asp:ListItem>
            <asp:ListItem>&lt;DIV&gt;&lt;/DIV&gt;</asp:ListItem>
            <asp:ListItem>&lt;HR&gt;&lt;/HR&gt;</asp:ListItem>
            <asp:ListItem>&lt;I&gt;&lt;/I&gt;</asp:ListItem>
            <asp:ListItem>&lt;P&gt;&lt;/P&gt;</asp:ListItem>
            <asp:ListItem>&lt;TITLE&gt;&lt;/TITLE&gt;</asp:ListItem>
        </asp:DropDownList>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:TextBox ID="TextBox8" 
    runat="server"></asp:TextBox>
&nbsp;&nbsp;&nbsp; <asp:Button ID="addsnip" runat="server" text="add snippet" />
    &nbsp;&nbsp;
    <br />
    <br />

    <asp:TextBox ID="TextBox2" runat="server" Height="800px" TextMode="MultiLine" 
        Width="800px"></asp:TextBox>
        
            
        
            <br />
    <br />
        
            <input id="file1" type="file" runat="server" /><asp:RequiredFieldValidator 
        ID="fileuploadRequired0" runat="server" ControlToValidate="file1" 
                             CssClass="failureNotification" 
        ErrorMessage="file is required." ToolTip="file is required." 
                             ValidationGroup="fileValidationGroup">*</asp:RequiredFieldValidator>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Button ID="button2" runat="server" Text="edit file" 
        ValidationGroup="fileValidationGroup" />
            <br />
            <br />
            <br />

            <asp:Label ID="Label2" runat="server" Text="username"></asp:Label>
            &nbsp;&nbsp;&nbsp;
            <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="UserNameRequired" 
        runat="server" ControlToValidate="textbox3" 
                             CssClass="failureNotification" 
        ErrorMessage="User Name is required." ToolTip="User Name is required." 
                             ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator>
            <br />
            <br />
            <asp:Label ID="Label3" runat="server" Text="password"></asp:Label>
            &nbsp;&nbsp;&nbsp;
            <asp:TextBox ID="TextBox4" runat="server" TextMode="Password"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="PasswordRequired" 
        runat="server" ControlToValidate="textbox4" 
                             CssClass="failureNotification" 
        ErrorMessage="Password is required." ToolTip="Password is required." 
                             ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator>
            <br />
            <br />
            <asp:Label ID="Label4" runat="server" Text="ftp adres"></asp:Label>
            &nbsp;&nbsp;&nbsp;&nbsp;
            <asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="ftpRequired0" 
        runat="server" ControlToValidate="textbox5" 
                             CssClass="failureNotification" 
        ErrorMessage="ftp is required." ToolTip="ftp adress is required" 
                             ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator>
            <br />
            <br />
            <asp:Label ID="Label5" runat="server" Text="file name"></asp:Label>
            &nbsp;&nbsp;&nbsp;
            <asp:TextBox ID="TextBox6" runat="server"></asp:TextBox>
            <br />
            <br />
            <asp:Label ID="Label6" runat="server" Text="path"></asp:Label>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:TextBox ID="TextBox7" runat="server">/</asp:TextBox>
            <br />
            <br />
            <asp:Button ID="Button3" runat="server" Text="upload to server" 
        ValidationGroup="LoginUserValidationGroup" />
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Button ID="Button4" runat="server" Text="get list from server" 
        ValidationGroup="LoginUserValidationGroup" />
        


    <br />
    <br />

    <br />
    <br />

        <asp:DropDownList ID="DropDownList2" runat="server">
            <asp:ListItem>/</asp:ListItem>
    </asp:DropDownList>
&nbsp;&nbsp;&nbsp;
    <asp:Button ID="goto" runat="server" Text="goto" />

        <br />

    <asp:ListBox ID="ListBox1" runat="server" Height="234px" Rows="5" 
    Width="295px">
        <asp:ListItem>nothing added</asp:ListItem>
    </asp:ListBox>
    <asp:ListBox ID="ListBox2" runat="server" Height="234px" Width="472px">
    </asp:ListBox>
    <br />
    <br />
    <asp:Button ID="Button5" runat="server" 
        Text="goto folder" />
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:Button ID="Button6" runat="server" Text="edit file" />
    <br />
    <br />

    <br />
    <br />
    <asp:TreeView ID="TreeView2" runat="server">
    </asp:TreeView>

    <br />
</asp:Content>
